package com.dailyblue.java.design.适配器模式;

public class Phone {

    public void charge(PhoneCharge phoneCharge) {
        if (phoneCharge.output5v() == 5) {
            System.out.println("手机开始充电");
        } else {
            System.out.println("电压不符合要求");
        }
    }
}
